package com.xzx.study.animation;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import com.xzx.study.R;

public class Setup1Activity extends AppCompatActivity implements View .OnClickListener{

    private Button setup1_next;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setup1);

        setup1_next = findViewById(R.id.setup1_next);
        setup1_next.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v == setup1_next) {
            startActivity(new Intent(this, Setup2Activity.class));
            overridePendingTransition(R.anim.right_in, R.anim.left_out);
        }
    }
}
